<template>
	<view class="content">
		<navTop :title="navtop.title" :isHeight="false" :tipsShow="false" hasBgc="#fff" :color="navtop.color" :isBack="true" ></navTop>
		<view class="content-box" :style="{paddingTop:barHeight+'rpx'}">
		</view>
		<view class="contetn-list">
			
			<view class="contetn-list__item"  @click="gotoPage(0)">
				<view class="title">
					About us
				</view>
				<view class="flex-l">
					<view class="user-info">
						
					</view>
					<image :src="vDown" mode="" class="right"></image>
				</view>
			</view>
			<view class="contetn-list__item" @click="gotoPage(1)">
				<view class="title">
					Connect us
				</view>
				<view class="flex-l">
					<view class="user-info" >
					</view>
					<image :src="vDown" mode="" class="right"></image>
				</view>
			</view>
		</view>
		<view class="content-btn" @click="submit">
			Exit Longhua
		</view>
	</view>
</template>
<script>
import navTop from '@/components/nav-title.vue';
import vDown from '@/static/v-down.png'

	export default {
		components: {
			navTop
		},
		data() {
			return {
				vDown,
				barHeight: 0
			}
		},
		onLoad() {

		},
		created() {
			this.isBarHeight999().then((statusBarHeight)=>{
				this.barHeight = statusBarHeight + 160
			})
		},
		mounted() {
		},
		methods: {
			gotoPage(i) {
				const pages = ['about', 'connect']
				uni.navigateTo({
					url: `/pages/me/${pages[i]}`
				})
			},
			submit() {
				uni.setStorageSync('wxInfo', {})
				uni.setStorageSync('openId', '')
				uni.reLaunch({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="less">
.content {
	background-color: #FBFCFE;
	// padding: 0 30px;
	min-height: 100vh;
}
.content-box {
	font-size: 40rpx;
	font-family: Helvetica-Bold, Helvetica;
	font-weight: bold;
	color: #1F1F1F;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 34rpx;
	padding: 0 30rpx;
	.content-title {
		font-size: 40rpx;
		padding: 28rpx 30rpx;
		width: 100%;
		box-sizing: border-box;
	}
	.conten-btn {
		width: 120rpx;
		height: 60rpx;
		text-align: center;
		line-height: 60rpx;
		background: #0078FF;
		border-radius: 36rpx;
		font-size: 28rpx;
		font-family: Helvetica;
		color: #FFFFFF;
	}
}
.contetn-list {
	padding: 30rpx 40rpx;
	width: 690rpx;
	margin: 0 auto;
	background: #FFFFFF;
	box-shadow: 0px 4px 12px 0px rgba(55, 58, 64, 0.08);
	border-radius: 4px;
	box-sizing: border-box;
	.contetn-list__item {
		margin-bottom: 50rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}
.flex-l {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.user-info {
	.img {
		width: 128rpx;
		height: 128rpx;
		border-radius: 50%;
		margin-right: 20rpx;
	}
	.info {
		font-size: 40px;
		font-family: Helvetica-Bold, Helvetica;
		font-weight: bold;
		color: #1F1F1F;
	}
	.num {
		color: rgba(31, 31, 31, 0.65);
		font-size: 32rpx;
		font-family: Helvetica-Bold, Helvetica;
	}
}
.right {
	width: 32rpx;
	height: 32rpx;
}
.content-btn {
	position: fixed;
	bottom: 40rpx;
	left: 50%;
	transform: translate(-50%, 0);
	
	width: 690rpx;
	height: 100rpx;
	background: #FFFFFF;
	box-shadow: 0px 4px 12px 0px rgba(55, 58, 64, 0.08);
	border-radius: 8rpx;


	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 32rpx;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: #EF4042;
}
.tips {
	text-align: right;
}
</style>
